<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>用户中心</title>
<link href="/res/css/respective/bussiness/userCenter.css" rel="stylesheet">
</head>
[#assign menucode="homePage"/]
<body>
	<div class="warp">
		[#include "/front/common/front_headAzt.html"]
		<div class="backcontent">
			[#include "/front/common/front_leftAzt.html"]
			<div class="back-main">
				<div class="mainContent">
					<div class="mainContentWhite">
						<div class="contentLeft">
							<div class="contentIterm">
								<h3>我当前的身份 </h3>
								<div style="margin-top: 15px;margin-bottom: 2px;">
									<div style="display: inline-block;text-align: left;width: 13%;">
										<img src="[#if currentUser.logo?? && currentUser.logo?length gt 0]${currentUser.logo!}[#else]/res/images/common/userLogo_05.png[/#if]" style="width: 100px;"/>
									</div> 
									<div style="display: inline-block;width: 86%;">
										<div class="tableCell" style="margin-left: 20px;">
											<h4>[#if topCompany?? && company.parentId??]${topCompany.companyName!}-[/#if]${company.companyName!}</h4>
											<h4>
												<span>采购商</span>
												[#if companySign??]
												[#if companySign.identity==1]
												<img style="vertical-align: middle;" src="/res/images/respective/bussiness/goldBussi_17.png" alt="金牌采购商" />
											    [#elseif companySign.identity==2]
												<img style="vertical-align: middle;" src="/res/images/respective/bussiness/goldBussi_19.png" alt="金牌服务商" />
											    [#elseif companySign.identity==3]
												<img style="vertical-align: middle;" src="/res/images/respective/bussiness/goldBussi_05.png" alt="主控股东会员" />
											    [#elseif companySign.identity==4]
												<img style="vertical-align: middle;" src="/res/images/respective/bussiness/goldBussi_07.png" alt="股东会员" />
											    [#elseif companySign.identity==5]
												<img style="vertical-align: middle;" src="/res/images/respective/bussiness/goldBussi_13.png" alt="战略合作商" />
											    [/#if]
											    [/#if]
											</h4>
											<h5>我的角色：<span style="font-size: 14px;">${currentRole.name!}</span></h5>
										</div>
										<div class="tableCell jiFen">
											<h4><strong><a href="/coin/my" style="color: #7d889c;">[#if coinCount??]${coinCount!0}[#else]0[/#if]</a></strong></h4>
											<h5>安装币</h5>
											<!-- <a  href=""><h5>什么是安装币？</h5></a> -->
										</div>
										<div class="tableCell navBar" style="height: 70px;margin: 11px 30px 0 30px;float: right;"> 
										</div>
										<div class="tableCell jiFen">
											<h4><strong><a href="/integral/myIntegral" style="color: #7d889c;">[#if userAccount??]${userAccount.usIntegral!0}[#else]0[/#if]</a></strong></h4>
											<h5>账户积分</h5>
										<!-- 	<h5><a class="qianDao">签到</a></h5> -->
										</div>  
									</div> 
								</div>
								<div class="opXunJia" [#if (!hasPurchasePermission)&& (!hasDesignPermission)]style="display: none"[/#if] >
									<div [#if !hasDesignPermission]style="display:none"[/#if] >
										<button onclick="location.href='/enquiry/design/choose'" type="button"><img src="/res/images/respective/bussiness/opXunJia_11.png"/>发预算询价</button>
										<a><p><a>接到陌生系统？找委托设计</a></p></a>
									</div>
									<div style="margin-left: 160px;[#if !hasPurchasePermission]display:none;[/#if]">
										<button onclick="location.href='/enquiry/purchase/choose'"><img src="/res/images/respective/bussiness/opXunJia_13.png"/>发采购询价</button>
										<a><p><a href="/entrust" target="_blank">时间紧急？找委托采购</a></p></a>
									</div>
								</div>
							</div> 
							<div class="contentIterm">
								<h3 style="background-image: url(/res/images/respective/bussiness/acai_54.png)">待处理事项</h3>
								<div style="margin-top: 15px;">
									<div style="display: inline-block;">
										<img src="/res/images/respective/bussiness/a_60.png" style="width: 125px;">
										<div class="daiChuLi">
											<h3><strong>项目</strong></h3>
											<h5><a href="/enquiry/project/list" >预算询价收到的报价</a> <a href="/enquiry/project/list" ><strong>${designcount!0}</strong></a></h5>
											<h5><a href="/enquiry/project/list" >采购询价收到的报价</a><a href="/enquiry/project/list"><strong>${purchasecount!0}</strong></a></h5>
										</div>
									</div>  
									<div style="display: inline-block;margin-left: 20px;">
										<img src="/res/images/respective/bussiness/a_62.png" style="width: 125px;">
										<div class="daiChuLi">
											<h3><strong>询价订单</strong></h3>
											<h5><a href="/order/quote?tab=1&state=1">待付款</a> <a href="/order/quote?tab=1&state=1"><strong>${unPayOrderCount!}</strong></a></h5>
											<h5><a href="/order/quote?tab=2&state=2">已付款</a><a href="/order/quote?tab=2&state=2"><strong>${payedOrderCount!}</strong></a></h5>
											<h5><a href="/order/quote?tab=3&state=3">已发货</a><a href="/order/quote?tab=3&state=3"><strong>${shipedOrderCount!}</strong></a></h5>
										</div>
									</div>  
								</div>
							</div>
							<div class="contentIterm">
								<h3 style="background-image: url(/res/images/respective/bussiness/acai_76.png)">我的项目
									<span style="display: inline-block;height: 30px;line-height: 30px;float: right;cursor: pointer;font-size: 14px;">
										<a href="/enquiry/project/list">查看更多</a>
									</span>
								 </h3>
								<table>
									<thead>
										<tr>
											<th>项目名称</th>
											<th>甲方名称    </th>
											<th>状态</th>
											<th>询价次数  </th>
											<th>收到的报价  </th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										[#list projects  as proj ]
											<tr>
												<td>${proj.projectName!}</td>
												<td>${proj.customerName!}</td>
												<td class="zhuangTai" ><img src="/res/images/respective/bussiness/a_80.png"/><span>[#if proj.state==1]进行中[#elseif proj.state==2]项目关闭[#else][/#if]</span></td>
												<td>${proj.count!0}</td>
												<td class="baoJia">${proj.qcount!0}</td>
												<td><a href='/enquiry/project/detail/p/${proj.id}/t/2'>查看详情</a></td>
											</tr>
										[/#list]
									</tbody>
								</table>
							</div>
						</div>
							 	<!--右侧内容-->
						<div class="contentRight">
							<div class="contentIterm" style="margin-bottom: 22px;box-shadow: 0 2px 3px #bababa;height: 298px;">
								<div style="height: 100px;">
									<a href="/enquiry/project/list">
										<h3 style="margin-top: 15px;background-image: url(/res/images/respective/bussiness/a_24.png)">我的项目</h3>
									</a> 
									<hr></hr>
									<a href="/order/quote">
										<h3 style="background-image: url(/res/images/respective/bussiness/a_30.png)">我的询价订单
											 
										</h3>
									</a> 
								</div> 
								<div style="position: relative;height: 180px;text-align: center;">
									<img src="/res/images/respective/bussiness/jiaGe_10.png" alt="" style="height: 100%;max-width: 100%;"/>
									<p class="compJy">我的采购总额 (元)</p>
									<p class="jiaoYi">${transactions!0}</p>
								</div> 
							</div>
						[@advertise_template code='purchaserCenterRight' /]
						</div>
					</div>
				</div>
			</div>
			<!-- 底部菜单-->
			[#include "/front/common/front_footerAzt.html"]
		</div>
	</div> 
</body>
<script src="/res/js/common/common.js"></script> 
<script>
	var step=0;
	var x=$(".contentRight").width();
	var sz=$("#adv1 li").children("img").size(); 
	$(function(){ 
		$("#adv1 li img").width(x); 
		$("#adv1").width(sz*x+1000);  
		$(".prev").click(function(){
			if($("#adv1").css("margin-left")=="0px"){//最左边
				$("#adv1").css("margin-left",-x*(sz-1));//展示最末图片  
				return; 
			}else{
				var m=$("#adv1").css("margin-left"); 
				$("#adv1").css("margin-left",parseFloat(m)+parseFloat(x));
				var ix=Math.abs((parseFloat(m)+parseFloat(x))/parseFloat(x)); 
			} 
		});
		$(".next").click(function(){  
			var t; 
			if(parseFloat($("#adv1").css("margin-left"))==(-x*(sz-1))){ 
				$("#adv1").css("margin-left","0px");
				t=$("#adv1").children("li[data-index='0']").attr("title"); 
				return; 
			}else{
				var m=$("#adv1").css("margin-left"); 
				$("#adv1").css("margin-left",parseFloat(m)-parseFloat(x));
				var ix=Math.abs((parseFloat(m)-parseFloat(x))/parseFloat(x));  
			}  
		});
		
		setInterval(adv,3000); 
		
		
		
	});
	function adv(){  
		if(step==(sz-1)){ 
			$("#adv1").css("margin-left","0px");
			t=$("#adv1").children("li[data-index='0']").attr("title"); 
			step=0;
			return; 
		}else{
			step++; 
			$("#adv1").css("margin-left",-x*step);  
		}  
	}
</script>
</html>
